package com.avic.rong.course.showapi;

import com.avic.rong.api.HttpPostService;
import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import io.reactivex.Observable;
import retrofit2.Retrofit;

public class PeiXunBaoMingApi extends BaseApi {

    private String consultName;
    private String model;
    private String consult;

    public PeiXunBaoMingApi(RxAppCompatActivity rxAppCompatActivity, HttpOnNextListener listener) {
        super(rxAppCompatActivity, listener);
        this.consultName = consultName;
        this.model = model;
        this.consult = consult;
    }


    public void setModel(String model,String consultName,String consult) {
        this.model = model;
        this.consultName = consultName;
        this.consult = consult;
    }



    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService httpPostService = retrofit.create(HttpPostService.class);
        return httpPostService.consult(consultName,model,consult);
    }
}
